@font-face {
    font-family: "OpenDyslexic";
    src: url("/balai/bbwsserayuopak/fonts/OpenDyslexic3-Regular.ttf")
        format("truetype");
    font-weight: normal;
    font-style: normal;
}

#accessibility-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* ===================== MODE KONTRAS ===================== */
/* ===================== NEGATIVE CONTRAST ===================== */
body.contrast-negatif {
    position: relative;
}

body.contrast-negatif::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 999999;
}

/* ===================== HIGH CONTRAST ===================== */
body.contrast-tinggi {
    position: relative;
    background-color: black !important;
    color: white !important;
}

body.contrast-tinggi::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    z-index: 999999;
}

/* ===================== LOW CONTRAST ===================== */
body.contrast-rendah,
body.contrast-rendah * {
    background: #f2f2f2 !important;
    color: #555 !important;
}

/* ===================== MODE DARK ===================== */
body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0 !important;
}

/* ===================== FONT ===================== */
body.readable-font,
body.readable-font * {
    font-family: "Arial Rounded MT Bold", Verdana, sans-serif !important;
}

body.dyslexia-font,
body.dyslexia-font * {
    font-family: "OpenDyslexic", Arial, sans-serif !important;
}

body.readable-font i,
body.dyslexia-font i {
    font-family: inherit !important;
}

/* ===================== KERENGGANGAN ===================== */
body.spacing-1,
body.spacing-1 * {
    letter-spacing: 0.03em !important; /* Lebar */
}

body.spacing-2,
body.spacing-2 * {
    letter-spacing: 0.05em !important; /* Lebih Lebar */
}

body.spacing-3,
body.spacing-3 * {
    letter-spacing: 0.1em !important; /* Sangat Lebar */
}

/* ===================== LINK ===================== */
body.contrast-tinggi a,
body.dark-mode a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

#accessibility-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: transparent;
    color: white;
    top: 50%;
    left: 3%;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

#accessibility-panel {
    color: rgb(0, 0, 0) !important;
    /* background: linear-gradient(266deg, #ffffff 0%, #a1b2ff 80%); */
    background: linear-gradient(275deg, #ffc929 0%, #a1b2ff 80%);
    position: fixed;
    bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: -webkit-fill-available;
    top: 0;
    left: 0;
    max-width: 40%;
    min-width: 400px;
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    gap: 10px;
    z-index: 99999998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    #accessibility-panel {
        min-width: 86%;
    }
}

#accessibility-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.acc-item .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 150px;
    height: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.acc-item .card .acc-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.acc-item .card p {
    margin: 0;
    font-size: 14px;
}

.acc-item .card.active-click {
    transform: scale(1.1);
    background: #007bff;
    color: #fff;
}

/* Icon */
.acc-icon {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Status teks */
.acc-item p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #333;
}

#accessibility-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

#accessibility-close:hover {
    color: red;
}

/* ====== GRID UNTUK 2 KOLOM ====== */
.accessibility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: stretch;
    margin-top: 15px;
}

.accessibility-grid .acc-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.accessibility-grid .card {
    width: 100%;
    max-width: 180px;
}

@media (max-width: 600px) {
    .accessibility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body.high-tinggi {
    background-color: #000 !important;
    color: #fff !important;
    filter: contrast(1.5);
}

body.big-text {
    font-size: 1.3em !important;
}

body.wide-spacing {
    letter-spacing: 2px !important;
    word-spacing: 4px !important;
}

body.line-height {
    line-height: 2 !important;
}

body.hide-images img {
    visibility: hidden !important;
}

body.big-cursor {
    cursor: url("images/png-clipart-computer-mouse-pointer-cursor-arrow-egore-blue-angle.png"),
        auto !important;
}

.active-click {
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

#cursorCircle {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 2px solid #ff6600;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease,
        border-width 0.2s ease;
    z-index: 9999;
    mix-blend-mode: difference;
    display: none;
}

.active-click {
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.highlight-links a {
    background-color: rgba(255, 255, 0, 0.4);
    color: #000 !important;
    text-decoration: underline !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.highlight-links a:hover {
    background-color: rgba(255, 255, 0, 0.8);
}

.lineheight-1,
.lineheight-1 * {
    line-height: 1.6 !important;
}

.lineheight-2,
.lineheight-2 * {
    line-height: 1.8 !important;
}

.lineheight-3,
.lineheight-3 * {
    line-height: 2 !important;
}

.acc-check {
    position: absolute;
    top: 5px;
    right: 8px;
    background: #28a745;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.card.active .acc-check {
    opacity: 1;
    transform: scale(1);
}

.acc-item .card {
    position: relative;
    overflow: visible;
}

.header-top,
.header-bottom {
    flex-shrink: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    position: sticky;
    z-index: 10;
}

.header-top {
    top: 15px;
}

.header-bottom {
    bottom: 0;
    border-top: 1px solid #ddd;
    border-bottom: none;
}

.scrollable-content {
    /* flex: 1; */
    overflow-y: auto;
    padding: 30px 7px;
    background: rgb(255, 255, 255);
    border-radius: 15px;
    /* aIa */
}
